import request from '@/common/request'

// 获取用户信息
export function getProject(id) {
  return request({
    url: '/quality/project/info/'+id,
    method: 'get'
  })
}
export function ProjectList(query) {
  return request({
    url: '/quality/project/list',
    method: 'post',
    data: query
  })
}

// 保存项目位置
export function savePosition(data) {
  return request({
    url: '/quality/project/savePosition',
    method: 'post',
		data: data
  })
}

// 项目单位列表
export function companylist(data) {
  return request({
    url: '/quality/project/company',
    method: 'post',
		data: data
  })
}

// 添加项目单位
export function addCompany(data) {
  return request({
    url: '/quality/project/addCompany',
    method: 'post',
		data: data
  })
}

// 移除项目单位
export function removeCompany(data) {
  return request({
    url: '/quality/project/removeCompany',
    method: 'post',
		data: data
  })
}

// 获取字典信息
export function getDict(type) {
  return request({
    url: '/system/dict/data/type/'+type,
    method: 'get'
  })
}
//查询项目权限
export function getProjectRole(projectId) {
  return request({
    url: '/quality/project/getCompanyType/' + projectId,
    method: 'get'
  })
}